import axios from "axios";
import request from "@/util/request.ts";

export async function deleteItem(code:any , url:string ){
    console.log(code.code)
    let res = await request.post("cg/"+ url ,null,{
        params:{"code":code.code}
    })
    return res;
}

export async function searchSource(code:string , type:string,pageNum:number,pageSize:number){
   let res =
       await request.post("cg/" + type + "/getPage",{
       "pageSize":pageSize,
       "pageNum":pageNum,
       "code":code,
           "status":3
   })
    return res;
}
